var mySetObj = {
    el: '#pageApp',
    data: {
      userMsg:{}
    },
    components:{
     
    },
    methods: {
      getUserinfo:function(){
          var _this=this;
          g.ajax({
              type: 'GET',
              url: g.url.format('/api/user/userinfo'),
              success: function (result) {
                  _this.userMsg = result;
              }
          });
      },
      logout:function(){
         g.modal.confirm({
            content:'确定要退出登录吗？',
            submitCallBack:function(){
               g.storage.delToken()
               g.window.openNew(g.url.urlHref('/page/login.html'));
            },
         })
      }
    },
    mounted:function () {
      this.getUserinfo();
    }
};
var initPage = function(){
  new Vue(mySetObj);
};